package com.ruifu.common.utils;

/** 权限计算,字符串按位或运算
 * @author lcq
 * @create 2019/12/9
 */
public class StringOrSumOperationUtils {
    public static String or2(String a1,String a2) {
        String rs="";
        for(int i=0;i<a1.length();i++){
            rs+=or1(a1.charAt(i), a2.charAt(i))?'1':'0';
        }
        return rs;
    }
    public static boolean or1(char a1,char a2) {
        return Integer.parseInt(a1+"")+Integer.parseInt(a2+"") >0;
    }
}
